package serial;

import java.io.Serializable;

/**
 * @author zhangxin
 * @date 2020/9/22
 */
public class Student implements Serializable {

    private final int level = 2;

    private String name;

    private static int age;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getAge() {
        return age;
    }

    public void setAge(int age) {
        Student.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                "age='" + age + '\'' +
                "level='" + level + '\'' +
                '}';
    }


    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
